<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="java.util.*"%>
<%@ page import="com.jiutian.hotel.business.impl.HotelListManagerImpl"%>
<%@ page import="com.jiutian.hotel.pojo.*"%>
<%
String hotelid=(String)(request.getSession().getAttribute("hotelid"));
HotelListManagerImpl impl=new HotelListManagerImpl();
List orders=impl.getHotelOrderByHotelid(hotelid);
request.getSession().setAttribute("orders",orders);
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>处理订单</title>
	
    <meta http-equiv="keywords" content="酒店,酒店预订"/>
    <meta http-equiv="description" content="九天是主要面向大学生提供酒店预订服务，价格低廉，品质优越"/>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
<link href="http://www.ijiutian.com/css/my.css" rel="stylesheet"/>
<link href="http://www.ijiutian.com/css/jquery-ui-1.8.13.custom.css" rel="stylesheet"/>
<script type="text/javascript" src="http://www.ijiutian.com/js/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="http://www.ijiutian.com/js/jquery-ui-1.8.13.custom.min.js"></script>
<script src="http://www.ijiutian.com/js/jquery-ui-i18n.min.js" type="text/javascript"></script>
<script>
function checkorder() {
	if($("#confirmOrder")==null){
		alert('没有订单！');
		return false;
	}
	return true;
}

</script>  
</head>
  <body>
	<jsp:include page="../bar.jsp" />
    <div id="fill_order">
    	
        <div class="top_side">
            <span class="l"></span><span class="r"></span>
        </div>
        <h1>订单信息</h1>
    <div class="side_box">
            <div class="t_s">
                <span class="l"></span><span class="r"></span>
            </div>
    <div class="main clx">
    <form name="confirmOrderForm" action="/hotel/confirmOrder.do" onsubmit="return checkorder()">
	    <div id="dvHotelListRegion">
          <div class="top"><span class="l left"></span><span class="r right"></span></div>
          <div id="detail_rmss">
            <div class="top"><span class="l left"></span><span class="r right"></span></div>
            <ul id="modelabc">
              <li id="titleabc"><p><span class="w1">房型</span><span class="w4">开始日期</span><span class="w4">结束日期</span><span class="w3">价格</span><span class="w3">姓名</span><span class="w5">到店时间</span><span class="w5">手机号</span><span class="w4">确认订单</span></p></li>
              <%for(int i=0;i<orders.size();++i){
                  HotelOrderData order = (HotelOrderData)orders.get(i);
              %>
              <li><p>
	              <span class="w1"><%=order.getRoomtype() %></span><span class="w4"><%=order.getStartDate() %></span><span class="w4"><%=order.getEndDate() %></span><span class="w3"><%=order.getAmount() %></span><span class="w3"><%=order.getCustomerName() %></span><span class="w5"><%=order.getArriveTime() %></span><span class="w5"><%=order.getMobileNo() %></span><select id="confirmOrder" name="confirmOrder"/> <option value="y">确认</option><option value="n" <%if(order.getConfirm()!=null && order.getConfirm().equals("n")) out.print("selected");%>>取消</option></select>
	              </p>
              </li>
              <%} %>
            </ul>
            <div class="down"><span class="l left"></span><span class="r right"></span></div>
          </div>
           <div class="down"><span class="l left"></span><span class="r right"></span></div>
		</div>
		<div class="submit_box"><input id="ContinueOrder" tabindex="20" value="提交" onfocus="this.blur()" onmouseout="this.className='sub_order'" onmouseup="this.className='sub_order'" onmousedown="this.className='sub_order_on'" class="sub_order" type="submit"/></div>
	</form>

	<div class="clear"></div>
	</div>
	<div class="clear"></div>
	<div class="d_s"><span class="l"></span><span class="r"></span></div>
	</div>
        <div class="down_side">
            <span class="l"></span><span class="r"></span>
        </div>
    </div>
    <jsp:include page="/hotel/footer.jsp" />
  </body>
</html>
